package com.winhxd.b2c.common.domain.customer.condition;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.winhxd.b2c.common.domain.common.DateCondition;
import com.winhxd.b2c.common.domain.common.PagedCondition;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;


@ApiModel(value = "用户分销商管理Condition")
@Data
public class CustomerDistributorCondition extends PagedCondition {

    @ApiModelProperty(value = "会员ID")
    private Long customerId;

    @ApiModelProperty(value = "渠道名称")
    private String channelName;

    @ApiModelProperty(value = "渠道ID")
    private Long channelId;

    @ApiModelProperty(value = "会员姓名")
    private String nickName;

    @ApiModelProperty(value = "用户手机号")
    private String customerMobile;

    @ApiModelProperty(value = "一级分销商所属员工ID")
    private Long firstParentId;

    @ApiModelProperty(value = "性别 0代表女 1代表男")
    private String sex;

    @ApiModelProperty(value = "分销商等级会员等级1:一级经销商 2：二级经销商 0：会员")
    private Integer level;

    @ApiModelProperty(value = "注册时间(起始时间)")
    private DateCondition created;

    @ApiModelProperty(value = "修改人编码")
    private Long updatedBy;

    @ApiModelProperty(value = "修改人名称")
    private String updatedByName;


    @ApiModelProperty(value = "状态")
    private Long status;

    @ApiModelProperty(value = "是否查询积分信息")
    private Integer isIntegral;


    @ApiModelProperty(value = "主键ID")
    private Long id;

    @ApiModelProperty(value = "查询标识1:查询一级分销商和二级分销商2:查询会员")
    private Long flag;

    @ApiModelProperty(value = "匹配会员昵称,用户名和姓名")
    private String keyword;


    @ApiModelProperty(value = "出生年月")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date birthday;


    @ApiModelProperty(value = "查询类型 1：查询下级会员")
    private Long selectType;

    @ApiModelProperty(value = "员工表id")
    private Long userId;


    @ApiModelProperty(value = "员工表id")
    private List<Integer> levelList;

    @ApiModelProperty(value = "绑定时间")
    private Date bindTime;

    @ApiModelProperty(value = "查询标识1:查询新客0:查询老客")
    private Integer accessType;
}
